<template>
  <div class="goods">
    <pageContent
      :contentTableConfig="contentTableConfig"
      pageName="goods"
      class="page-content"
    >
      <template #image="scope">
        <el-image
          :src="scope.row.imgUrl"
          style="width: 60px; hight: 60px"
          :preview-src-list="[scope.row.imgUrl]"
        >
        </el-image>
      </template>
      <template #oldPrice="scope">{{ '¥' + scope.row.oldPrice }}</template>
    </pageContent>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import pageContent from '@/components/page-content'
import { contentTableConfig } from './config/content.config'
export default defineComponent({
  name: 'goods',
  components: {
    pageContent
  },
  setup() {
    return { contentTableConfig }
  }
})
</script>

<style scoped>
.page-content {
  padding: 0px;
  border-top: 0px #f5f5f5;
}
</style>
